<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of entri_pesan_model
 *
 * @author user
 */
class Entri_beli_model extends Model{
    //put your code here

    function form($desain){
        $data['pilihDesainBeli'] = array(
            'name' => 'selectDesainBeli',
            'id' => 'selectDesainBeli',
        );

        $data['desainJsBeli'] = 'onchange="tes"';

        foreach ($desain as $d){
            $n = $d->nama;
            $data['optionDesainBeli'][$n] = $n;
        }

        $data['pilihJenisBeli'] = array(
            'name' => 'selectJenisBeli',
            'id' => 'selectJenisBeli',
        );


        $data['submitBeli'] = array(
            'name' => 'submitBeli',
            'id' => 'submitBeli',
            'value' => 'Submit'
        );

        return $data;
    }
}
?>
